#!/bin/bash -e

function info() {
echo Usage: `basename $0` 'list(file legend win sample)'
exit 2
}

while getopts  ":p:f:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi

. $var

# IFS(Internal Field Seprator) IFS=$' \t\n'

# "file", "legend", "win", "sample"
# :>$out_prefix.names.txt
# for fils; do
	# echo $fil $legend $win $sample >> $out_prefix.names.txt
# done


Rscript ${tools_path}/script/lorenz1.r --args $1
rename lorenz $out_prefix.lorenz lorenz.pdf